Increase default image size limit; don't unlimit Gnus.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Feb 2012 06:40:08 +0000 (22:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Feb 2012 06:40:08 +0000 (22:40 -0800)
* lisp/gnus/shr.el (shr-rescale-image): Undo previous change; see
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
* src/image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.

lisp/gnus/ChangeLog
lisp/gnus/shr.el
src/ChangeLog
src/image.c

index 88008da0df9e0bed0190232fc623e8f66744e81a..6c209ec18a7649423f4866ff8fa2f6442fcef20f 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * shr.el (shr-rescale-image): Undo previous change; see
+       <http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
+
 2012-02-13  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-record-commands): New variable.
index 47622f5183d2fa25577bee9f8376ef1a433c4918..a8bbc77a4b1b633ad1ddb60e9f1d3076b25a1904 100644 (file)
@@ -557,8 +557,7 @@ the URL of the image to the kill buffer instead."
     (insert alt)))
 
 (defun shr-rescale-image (data)
-  (let* ((max-image-size nil)
-        (image (create-image data nil t :ascent 100)))
+  (let ((image (create-image data nil t :ascent 100)))
     (if (or (not (fboundp 'imagemagick-types))
            (not (get-buffer-window (current-buffer))))
        image
index 3e9fa67fd95525ca3a0b10de362d7aa441ff8603..bbeb00182381881ed7d389bb37a62bcbe40ec807 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see
+       <http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
+
 2012-02-15  Chong Yidong  <cyd@gnu.org>
 
        * eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is
index b2951dd70fbc2f99b4e3688ba391e1cfda1e6262..73490fe28659afbdd199e56dbbd6d206adbb400b 100644 (file)
@@ -976,7 +976,7 @@ or omitted means use the selected frame.  */)
 
 static void free_image (struct frame *f, struct image *img);
 
-#define MAX_IMAGE_SIZE 6.0
+#define MAX_IMAGE_SIZE 10.0
 /* Allocate and return a new image structure for image specification
    SPEC.  SPEC has a hash value of HASH.  */